package com.furnitur.modules.portal.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.furnitur.modules.portal.dto.furniture.FurnitureQueryDTO;
import com.furnitur.modules.portal.vo.furniture.FurnitureVO;

public interface PortalFurnitureService {
    /**
     * 分页查询商品列表
     */
    Page<FurnitureVO> listFurniture(FurnitureQueryDTO queryDTO);

    /**
     * 获取商品详情
     */
    FurnitureVO getFurnitureDetail(Long id);

    /**
     * 获取热门商品
     */
    Page<FurnitureVO> listHotFurniture(Integer pageSize);

    /**
     * 获取新品上架
     */
    Page<FurnitureVO> listNewFurniture(Integer pageSize);

    /**
     * 获取热门商品
     */
    Object getHotFurniture(Integer pageSize);

    /**
     * 获取新品上市商品列表
     * @param page 分页参数
     * @param sortType 排序类型
     * @return 分页结果
     */
    IPage<FurnitureVO> getNewFurniture(Page<FurnitureVO> page, String sortType);
} 